#[cfg(test)]
mod tests {
    use tokio::time::{sleep, Duration};

    #[tokio::test]
    async fn test_async_basic() {
        let result = async { 42 };
        assert_eq!(result.await, 42);
    }

    #[tokio::test]
    async fn test_tokio_runtime() {
        let handle = tokio::spawn(async {
            sleep(Duration::from_millis(50)).await;
            100
        });

        assert_eq!(handle.await.unwrap(), 100);
    }
}